import {post,get,del,put} from '@/utils/service'

export const SysLoginApi=data=>{
    return post({
        url:"/api/login/sys_login",
        data,
        isAdmin: true
    })
}

export const logOutApi=data=>{
    return post({
        url:"/api/login/logout",
        data,
        isAdmin: true
    })
}

export const getUserList=data=>{
    return get({
        url:"/api/user/list",
        data,
        isAdmin:true
    })
}
export const updateUser=data=>{
    return put({
        url: "/api/user/update",
        data,
        isAdmin:true
    })
}
export const deleteUser=data=>{
    return del({
        url:"/api/user/delete?id="+data.id,
        isAdmin:true
    })
}